package dome3;

public class Duck extends Animal implements ISwimming,IFlying,IRunning{
    public Duck(String name, int age) {
        super(name, age);
    }

    @Override
    void eat() {
        System.out.println(this.name+"在吃小虾米......");
    }

    @Override
    public void fly() {
        System.out.println(this.name+"在用翅膀飞......");
    }

    @Override
    public void run() {
        System.out.println(this.name+"在用两只鸭掌走路......");
    }

    @Override
    public void swim() {
        System.out.println(this.name+"在手脚并用游泳......");
    }
}
